<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/bluePage.css" rel="stylesheet" type="text/css" />
<script src="../../../js/public.js" type="text/javascript"></script>
#parse("/WEB-INF/views/base/base.html")
<!-- 定义Velocity宏 -->
#macro(orderPic $type)
	#if ($orderBy.equals($type))<img src="/images/base/$!{orderType}.gif" style="border:0;width:13px;height:4px;" border="0" />#end
#end
<title>部门列表</title>
</head>
<body>
<form id="ListForm" name="ListForm" action='?cmd=list' method="post">
  <input type="hidden" name="orderBy" value="$!orderBy"/>
  <input type="hidden" name="orderType" value="$!orderType"/>
  <div class="content-right">
    <div class="content-r-pic">
      <div style="margin:8px auto auto 12px;"><img src="../../../images/department.gif" width="138" height="17" /></div>
    </div>
    <div class="content-text">
      <div class="square-o-top">
        <table width="100%"  border="0" cellpadding="0" cellspacing="0" style="font-size:14px; font-weight:bold; font-family:"黑体";">
          <tr>
            <td width="70" height="30">部门编号</td>
            <td width="140"><input class="searchInput" name="sn" id="sn" type="text" /></td>
            <td width="70">联系电话</td>
            <td width="140"><input class="searchInput" name="officeTel" id="officeTel" type="text" /></td>
            <td width="200">&nbsp;</td>
            <td width="85"><input type="image" src="../../../images/can_b_01.gif" border="0" /></td>
            <td width="85"><a href="?cmd=add"><img src="../../../images/can_b_02.gif" border="0"/></a></td>
          </tr>
        </table>
      </div>
      <!--"square-o-top"end-->
      <div class="square-order">
        <table width="100%"  border="0" id="listDB" cellpadding="0" cellspacing="0">
          <tr class="thead">
            <td style="width:110px;" height="30" onclick="return doSort('sn');">部门编号#orderPic('sn')</td>
            <td style="width:140px;" onclick="return doSort('name');">部门名称#orderPic('name')</td>
            <td style="width:140px;" onclick="return doSort('officeTel');">部门电话#orderPic('officeTel')</td>
            <td style="width:120px;" onclick="return doSort('manager');">部门经理#orderPic('manager')</td>
            <td style="width:100px;" onclick="return doSort('status');">部门状态#orderPic('status')</td>
            <td style="width:100px;" onclick="return doSort('sequence');">显示顺序#orderPic('sequence')</td>
            <td style="width:120px;">操作</td>
          </tr>
          #foreach($obj in ${result})
          <tr ondblclick="window.location.href='?cmd=edit&id=${obj.id}'" onmouseover="JsUtil.displace(this,true)" onmouseout="JsUtil.displace(this,false)" id="sn_$!velocityCount">
            <td height="28">$!{obj.sn}</td>
            <td>$!{obj.name}</td>
            <td>$!{obj.officeTel} </td>
            <td>&nbsp;$!{obj.manager.userName}</td>
            <td>#if($!{obj.status}==1)<span style="color:green">正常</span>
              #elseif($!{obj.status}==0)<span style="color:blue">锁定</span>
              #elseif($!{obj.status}==-1)<span style="color:red">回收站</span>#else<span style="color:graz">未知</span>#end </td>
            <td>$!{obj.sequence}</td>
            <td><img src="../../../images/icon_3.gif" /> <span style="line-height:12px; text-align:center;"><a class="xiu" href="?cmd=edit&id=${obj.id}">修改</a></span> <img src="../../../images/icon_04.gif" /> <span style="line-height:12px; text-align:center;"><a class="xiu" href="?cmd=delete&id=${obj.id}" onclick="return confirm('数据删除后不能恢复,请确认!');">删除</a></span></td>
          </tr>
          #end
        </table>
      </div>
    </div>
    <div class="content-bbg">
      <table width="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>$!{bluePage}</td>
        </tr>
      </table>
    </div>
  </div>
  
</form>
</body>
</html>
<script type="text/javascript">window.onload = JsUtil.interleaved("$!pageSize");</script>